import {
  createRouter,
  createWebHashHistory
} from 'vue-router'

const routes = [{
    path: '/smslogin',
    name: 'smslogin',
    component: () => import('@/views/login/smslogin.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue')
  },
  {
    path: '/search',
    name: 'search',
    component: () => import('@/views/search/index.vue')
  },
  {
    path: '/',
    name: 'layouts',
    redirect: '/index',
    component: () => import('@/views/layouts/index.vue'),
    children: [{
        path: '/index',
        name: 'Index',
        component: () => import('@/views/index.vue')
      },
      {
        path: '/course',
        name: 'Course',
        component: () => import('@/views/course/index.vue'),
      },

    ]

  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router